package com.gdhz.xiaohengqin.device.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author Swallows
 * @date 2025-06-04 11:08
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DeviceStatus {

    @JsonProperty("SN")
    private int sn;

    @JsonProperty("1号门")
    private String entranceOne;
    @JsonProperty("2号门")
    private String entranceTwo;
    @JsonProperty("3号门")
    private String entranceThree;
    @JsonProperty("4号门")
    private String entranceFour;

    @JsonProperty("刷新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime refreshTime;
    @JsonProperty("服务器时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime serverTime;
}
